package com.st.myservice;

import java.io.IOException;
import java.net.Socket;

public class ServiceStation {
    public static void main(String[] args){
        Socket a = null;
        try {
            a = new Socket("127.0.0.1", 4515);
            byte[] arr = new byte[1024];
            a.getInputStream().read(arr);
            String s = String.valueOf(arr);
            System.err.println("------------------"+s);

        }catch (Exception e){
            System.out.println(e);
        }finally {
            try {
                a.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}
